﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using VisualAgile.Model;

namespace VisualAgile.Web.Tests
{
    class FakeRoleData
    {
        public static List<Role> CreateTestRoles()
        {

            List<Role> roles = new List<Role>() { 
                Administrator(),
                LeadDeveloper(),
                Developer()              
            };

            return roles;
        }

        public static Role Administrator()
        {
            Role someRole = new Role()
            {
                RoleGUID = new Guid("2EBDBC36-3585-47b3-8709-BE3184956938"),
                RoleID = 1,
                CreateTime = DateTime.Now,
                Name = "Manager"
            };

            return someRole;
        }

        public static Role Developer()
        {
            Role demo = new Role()
            {
                RoleGUID = new Guid("29DC7A46-52B5-4941-AAE2-F48592847E42"),
                RoleID = 3,
                CreateTime = DateTime.Now,
                Name = "Developer"
            };

            return demo;
        }

        public static Role LeadDeveloper()
        {
            Role Default = new Role()
            {
                RoleGUID = new Guid("BE4B0656-8685-439e-B4EA-66D5C9BA7508"),
                RoleID = 2,
                CreateTime = DateTime.Now,
                Name = "LeadDeveloper"
            };

            return Default;
        }      
    }
}
